package com.ruoyi.food.domain;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import com.ruoyi.system.api.domain.SysFile;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 食品质量安全隐患对象 opm_food_safe_hidden
 *
 * @author cjie
 * @date 2021-07-24
 */
@Data
@ApiModel
public class OpmFoodSafeHidden extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 序号 */
    @ApiModelProperty(value = "序号")
    @JsonSerialize(using = com.fasterxml.jackson.databind.ser.std.ToStringSerializer.class)
    @JSONField(serializeUsing= ToStringSerializer.class)
    private Long id;

    /** 企业名称 */
    @Excel(name = "企业名称")
    @ApiModelProperty(value = "企业名称")
    private String name;

    /** 隐患事件 */
    @Excel(name = "隐患事件")
    @ApiModelProperty(value = "隐患事件")
    private String event;

    /** 隐患内容 */
    @Excel(name = "隐患内容")
    @ApiModelProperty(value = "隐患内容")
    private String content;

    /** 附件数量 */
    @Excel(name = "附件数量")
    @ApiModelProperty(value = "附件数量")
    private Integer attachNum;

    /** 附件 */
    @Excel(name = "附件")
    @ApiModelProperty(value = "附件")
    private String url;

    /** 附件id集合 */
    @Excel(name = "附件id集合")
    @ApiModelProperty(value = "附件id集合")
    private List<Long> fileIdList;

    /** 附件集合 */
    @Excel(name = "附件集合")
    @ApiModelProperty(value = "附件集合")
    private List<SysFile> fileList;
}
